package cn.itcast.cd.action;

import java.util.List;

import cn.itcast.cd.dao.IPermissionDao;
import cn.itcast.cd.domain.Permission;
import cn.itcast.cd.domain.Role;
import cn.itcast.cd.service.IPermissionService;
import cn.itcast.cd.service.IPurchaseBillService;


import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class PurchaseBillItemAction extends ActionSupport {

	
	private IPurchaseBillService purchaseBill;

	private Role role = new Role();
	
	
	public Role getRole() {
		return role;
	}

	public void setpurchaseBill(IPurchaseBillService purchaseBill) {
		this.purchaseBill = purchaseBill;
	}

	public String save(){
		
		return SUCCESS;
	}
	
	public String delete(){
		purchaseBill.delete(role.getId());
		return SUCCESS;
	}
	
	public String list(){
		
		return "list";
	}
	
}
